package com.wmz.constant;

/**
 * @author wmz
 * @date 2024/2/18 15:58
 * @description 常量类
 */
public class Constants {
    //JWT的密钥
    public static final String SECRET = "w3osER)wTxc0>pTr03ryP";

    //设置登录接口
    public static final String LOGIN_URI = "/api/login";

    //redis的key的命名规范(在项目开发中)： xxx项目:xxx模块:xxx功能:唯一业务参数
    public static final String REDIS_JWT_KEY = "wmz:user:login:";

    //JWT过期时间10天
    public static final Long EXPIRE_TIME = 10 * 24 * 60 * 60L;

    //JWT过期时间2天
    public static final Long DEFAULT_EXPIRE_TIME = 2 * 24 * 60 * 60L;

    //导出Excel的uri地址
    public static final String EXPORT_EXCEL_URI = "/api/exportExcel";

    //请求token名
    public static final String TOKEN_NAME = "Authorization";

    //记住我的参数名
    public static final String REMEMBERME_NAME = "rememberMe";
    //每页条数
    public static final int PAGE_SIZE = 10;
}
